package com.hwl.demo20.service.impl;

import com.hwl.demo20.service.Country;
import com.hwl.demo20.service.UnitedNations;

/**
 * 美国类
 *
 * @author sentry
 * @since 2023-03-26
 */
public class USA extends Country {
    public USA(UnitedNations unitedNations) {
        super(unitedNations);
    }

    @Override
    public void declare(String message) {
        this.unitedNations.declare(message, this);
    }

    @Override
    public void getMessage(String message) {
        System.out.println("美国获得对方信息：" + message);
    }
}
